package pe.gob.osce.sirenas.model.jpa;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name="PAR_ADM_REGION", schema="RNAS" )
@SequenceGenerator(name = "sqId_Par_Region", sequenceName = "RNAS.ID_PAR_REGION", allocationSize=1)
public class Region implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -8392322956223166344L;

	@Id 
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sqId_Par_Region")	
	@Column(name="N_ID_REGION")
	private Long idRegion;
	@Column(name="C_NOM_REGION")
	private String nomRegion;
	@Column(name="D_FEC_REGISTRO")
	private Date fecRegistro;
	
	
	public Date getFecRegistro() {
		return fecRegistro;
	}
	public void setFecRegistro(Date fecRegistro) {
		this.fecRegistro = fecRegistro;
	}
	public Long getIdRegion() {
		return idRegion;
	}
	public void setIdRegion(Long idRegion) {
		this.idRegion = idRegion;
	}
	public String getNomRegion() {
		return nomRegion;
	}
	public void setNomRegion(String nomRegion) {
		this.nomRegion = nomRegion;
	}

		
}
